import request from '@/utils/request'

//考试-开始考试
export function startExamApi(examId,studentId,courseIndexStuId) {
  return request({
    url: `/exam/stu/startExam/${examId}/${studentId}/${courseIndexStuId}`,
    method: 'post'
  })
}
//考试-结束考试
export function finshExamPaperApi(examPaperId) {
  return request({
    url: `/exam/stu/endExam/${examPaperId}`,
    method: 'post'
  })
}
//考试-提交回答
export function submitSingleAnswerApi(data) {
  return request({
    url: `/exam/stu/submitAnswer`,
    method: 'post',
    data:data
  })
}
//考试-通过考试记录Id获取考试试题-查看
export function getExamPaperApi(examPaperId,params) {
  return request({
    url: `/exam/stu/getExamPaper/${examPaperId}`,
    method: 'get',
    params:params
  })
}

//考试-预览试卷
export function previewExamPaperApi(examId,params) {
  return request({
    url: `/exam/teacher/manager/previewExamPaper/${examId}`,
    method: 'get',
    params:params
  })
}
